package com.talent.core.protocol.mqtt.model.request;

import com.talent.core.protocol.mqtt.model.fix.TlMqttFixedHead;
import com.talent.core.protocol.mqtt.model.payload.TlMqttConnectPayload;
import com.talent.core.protocol.mqtt.model.variable.TlMqttConnectVariableHead;

/**
 * @ClassName：TlMqttConnectReq
 * @Author: hszhou
 * @Date: 2024/11/25 11:07
 * @Description: 接收到mqtt的连接报文
 */
public class TlMqttConnectReq   {
    private TlMqttFixedHead fixedHead;
    /**可变头*/
    private TlMqttConnectVariableHead variableHead;

    private TlMqttConnectPayload payload;

    public TlMqttConnectReq(TlMqttFixedHead fixedHead, TlMqttConnectVariableHead variableHead, TlMqttConnectPayload payload) {
        this.fixedHead = fixedHead;
        this.variableHead = variableHead;
        this.payload = payload;
    }

    public TlMqttFixedHead getFixedHead() {
        return fixedHead;
    }

    public void setFixedHead(TlMqttFixedHead fixedHead) {
        this.fixedHead = fixedHead;
    }

    public TlMqttConnectVariableHead getVariableHead() {
        return variableHead;
    }

    public void setVariableHead(TlMqttConnectVariableHead variableHead) {
        this.variableHead = variableHead;
    }

    public TlMqttConnectPayload getPayload() {
        return payload;
    }

    public void setPayload(TlMqttConnectPayload payload) {
        this.payload = payload;
    }
}
